import {INCREMENT,DECREMENT} from '../constants/index'

export const a_increment = payload => {
    return {
        type:INCREMENT,
        payload
    }
}

export const a_decrement = payload => {
    return {
        type:DECREMENT,
        payload
    }
}

export const a_account = payload => {
    return { 
        type: "CHANGE_ACCOUNT",
        payload:payload
    }
}
// 创建异步
export const a_asyncAccount = payload => {
    return (dispatch) => {
        setTimeout(()=>{
            dispatch(a_account(payload))
        },2000)
    }
} 

